import { createWebHashHistory, createRouter } from 'vue-router'

import Home from '../pages/home.vue'
import Home1 from '../pages/home1.vue'
import About from '../pages/about.vue'
import Customer from '../pages/customer.vue'
import Member from '../pages/member.vue'
import Product from '../pages/product.vue'

const routes = [
  {
    path: '/', component: Home,
    children: [
      {
        path: 'home1',
        component: Home1,
      },
      {
        path: 'About',
        component: About,
      },
      {
        path: 'Customer',
        component: Customer,
      },
      {
        path: 'Member',
        component: Member,
      },
      {
        path: 'Product',
        component: Product,
      },
    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router